package com.ccl.iot.views;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.ccl.iot.R;

/**
 * @description：
 * @author： HD
 * @time：2017/3/28
 */

public class DialogView extends LinearLayout {

    public TextView mTitleNameTv;
    public TextView mMsgTv;
    public Button mCannelBtn;
    public Button mOkBtn;

    public DialogView(Context context) {
        this(context,null);
    }

    public DialogView(Context context, @Nullable AttributeSet attrs) {
        this(context, attrs,0);
    }

    public DialogView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        View view = LayoutInflater.from(context).inflate(R.layout.dialog_remove_batch, null);
        mTitleNameTv = (TextView) view.findViewById(R.id.tv_title);
        mMsgTv = (TextView) view.findViewById(R.id.tv_batch_msg);
        mCannelBtn = (Button) view.findViewById(R.id.btn_cancel);
        mOkBtn = (Button) view.findViewById(R.id.btn_ok);
    }

}
